package com.xbongbong.admin.domain.entity;

import com.xbongbong.paas.toolbox.wrap.Entity;
import com.xbongbong.saas.domain.entity.WorkOrderTemplateCategoryEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author guohui.zhang
 * @Title: 工单模板分类entity
 * @date 2020/3/1718:42
 */
@Getter
@Setter
@ToString
public class WorkOrderTemplateCategoryRetainEntity extends Entity {

    private static final long serialVersionUID = -6881302320004377282L;
    /**
     * 主键
     */
    private Long id;
    /**
     * 公司id
     */
    private String corpid;
    /**
     * 备份应用id
     */
    private Long retainAppId;
    /**
     * 原应用id
     */
    private Long sourceAppId;
    /**
     * 原工单分类的id
     */
    private Long sourceCategoryId;
    /**
     * 模板分类名
     */
    private String name;
    /**
     * 是否为默认，1为默认分类，0不是默认分类
     */
    private Integer isDefault;
    /**
     * 排序值
     */
    private Integer sort;
    /**
     * 创建人ID
     */
    private String creatorId;
    /**
     * 创建人姓名
     */
    private String creatorName;
    /**
     * 最近修改人ID
     */
    private String modifierId;
    /**
     * 最近修改人姓名
     */
    private String modifierName;
    /**
     * 增加时间
     */
    private Long addTime;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * 删除标记 0未删除，1删除
     */
    private Integer del;

    public WorkOrderTemplateCategoryRetainEntity() {
    }

    public WorkOrderTemplateCategoryRetainEntity(WorkOrderTemplateCategoryEntity workOrderTemplateCategoryEntity) {
        this.corpid = workOrderTemplateCategoryEntity.getCorpid();
        this.sourceAppId = workOrderTemplateCategoryEntity.getAppId();
        this.sourceCategoryId = workOrderTemplateCategoryEntity.getId();
        this.name = workOrderTemplateCategoryEntity.getName();
        this.isDefault = workOrderTemplateCategoryEntity.getIsDefault();
        this.sort = workOrderTemplateCategoryEntity.getSort();
        this.creatorId = workOrderTemplateCategoryEntity.getCreatorId();
        this.creatorName = workOrderTemplateCategoryEntity.getCreatorName();
        this.modifierId =workOrderTemplateCategoryEntity.getModifierId();
        this.modifierName = workOrderTemplateCategoryEntity.getModifierName();
        this.addTime =workOrderTemplateCategoryEntity.getAddTime();
        this.updateTime = workOrderTemplateCategoryEntity.getUpdateTime();
        this.del = workOrderTemplateCategoryEntity.getDel();
    }
}
